package com.zhuiYun.project.api.paymode.controller;

import com.zhuiYun.project.api.paymode.service.PayModeService;
import com.zhuiYun.project.common.response.CommonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName PayModeController
 * @Description TODO
 * @Author lzy
 * @Date 2023/4/5 15:36
 **/
@RestController
@Api(tags = "支付方式模块")
@Slf4j
@RequestMapping("/payMode")
@CrossOrigin
public class PayModeController {

    @Autowired
    PayModeService payModeService;

    /**
    * @Description 查询支付方式信息列表方法
    * @Author lzy
    * @Date 2023/4/5 15:39
    * @Return com.zhuiYun.project.common.response.CommonResult
    */
    @GetMapping("/getPayModeList")
    @ApiOperation(value = "查询支付方式信息列表方法")
    public CommonResult getPayModeList () {
        return payModeService.getPayModeList();
    }


}
